﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Portal.Workflow.Model
{
    public class ProcessWorkflowFunctionParamCls
    {
        public string RunCommandText;
        public string XmlData;
        public string RecordId;
        public string WorkflowActionId;
        public string WorkflowDefId;
        public System.Data.Common.DbTransaction dbTransaction;
        public WsInParamCls oWsInParamCls;
    }

    public class ReturnProcessWorkflowFunctionParamCls
    {
        public bool ProcessOk = false;
        public bool Error;
        public string ReturnMsg = "";
    }


    public interface IProcessWorkflowFunction
    {
        string Id { get; }
        string Name { get; }
        string Description { get; }
        ReturnProcessWorkflowFunctionParamCls Execute(ProcessWorkflowFunctionParamCls oProcessWorkflowFunctionParamCls);
    }

    public class ProcessWorkflowFunctionTemplate : IProcessWorkflowFunction
    {
        public virtual string Id
        {
            get
            {
                return null;
            }
        }

        public virtual string Name
        {
            get
            {
                return null;
            }
        }

        public virtual string Description
        {
            get
            {
                return null;
            }
        }

        public virtual ReturnProcessWorkflowFunctionParamCls Execute(ProcessWorkflowFunctionParamCls oProcessWorkflowFunctionParamCls)
        {
            return null;
        }
    }
}
